package generator;

import java.io.Serializable;
import java.util.Date;

/**
 * t_goods
 * @author 
 */
public class Goods implements Serializable {
    private Integer goods_id;

    private Integer cate_id;

    private String goods_name;

    private Float goods_price;

    private Float goods_discount;

    private Integer goods_stock;

    private String goods_origin;

    private String goods_material;

    private Float goods_postalfee;

    private Date goods_date;

    private Integer goods_sales;

    private String goods_pic;

    private String goods_disc;

    private static final long serialVersionUID = 1L;

    public Integer getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(Integer goods_id) {
        this.goods_id = goods_id;
    }

    public Integer getCate_id() {
        return cate_id;
    }

    public void setCate_id(Integer cate_id) {
        this.cate_id = cate_id;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public Float getGoods_price() {
        return goods_price;
    }

    public void setGoods_price(Float goods_price) {
        this.goods_price = goods_price;
    }

    public Float getGoods_discount() {
        return goods_discount;
    }

    public void setGoods_discount(Float goods_discount) {
        this.goods_discount = goods_discount;
    }

    public Integer getGoods_stock() {
        return goods_stock;
    }

    public void setGoods_stock(Integer goods_stock) {
        this.goods_stock = goods_stock;
    }

    public String getGoods_origin() {
        return goods_origin;
    }

    public void setGoods_origin(String goods_origin) {
        this.goods_origin = goods_origin;
    }

    public String getGoods_material() {
        return goods_material;
    }

    public void setGoods_material(String goods_material) {
        this.goods_material = goods_material;
    }

    public Float getGoods_postalfee() {
        return goods_postalfee;
    }

    public void setGoods_postalfee(Float goods_postalfee) {
        this.goods_postalfee = goods_postalfee;
    }

    public Date getGoods_date() {
        return goods_date;
    }

    public void setGoods_date(Date goods_date) {
        this.goods_date = goods_date;
    }

    public Integer getGoods_sales() {
        return goods_sales;
    }

    public void setGoods_sales(Integer goods_sales) {
        this.goods_sales = goods_sales;
    }

    public String getGoods_pic() {
        return goods_pic;
    }

    public void setGoods_pic(String goods_pic) {
        this.goods_pic = goods_pic;
    }

    public String getGoods_disc() {
        return goods_disc;
    }

    public void setGoods_disc(String goods_disc) {
        this.goods_disc = goods_disc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Goods other = (Goods) that;
        return (this.getGoods_id() == null ? other.getGoods_id() == null : this.getGoods_id().equals(other.getGoods_id()))
            && (this.getCate_id() == null ? other.getCate_id() == null : this.getCate_id().equals(other.getCate_id()))
            && (this.getGoods_name() == null ? other.getGoods_name() == null : this.getGoods_name().equals(other.getGoods_name()))
            && (this.getGoods_price() == null ? other.getGoods_price() == null : this.getGoods_price().equals(other.getGoods_price()))
            && (this.getGoods_discount() == null ? other.getGoods_discount() == null : this.getGoods_discount().equals(other.getGoods_discount()))
            && (this.getGoods_stock() == null ? other.getGoods_stock() == null : this.getGoods_stock().equals(other.getGoods_stock()))
            && (this.getGoods_origin() == null ? other.getGoods_origin() == null : this.getGoods_origin().equals(other.getGoods_origin()))
            && (this.getGoods_material() == null ? other.getGoods_material() == null : this.getGoods_material().equals(other.getGoods_material()))
            && (this.getGoods_postalfee() == null ? other.getGoods_postalfee() == null : this.getGoods_postalfee().equals(other.getGoods_postalfee()))
            && (this.getGoods_date() == null ? other.getGoods_date() == null : this.getGoods_date().equals(other.getGoods_date()))
            && (this.getGoods_sales() == null ? other.getGoods_sales() == null : this.getGoods_sales().equals(other.getGoods_sales()))
            && (this.getGoods_pic() == null ? other.getGoods_pic() == null : this.getGoods_pic().equals(other.getGoods_pic()))
            && (this.getGoods_disc() == null ? other.getGoods_disc() == null : this.getGoods_disc().equals(other.getGoods_disc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getGoods_id() == null) ? 0 : getGoods_id().hashCode());
        result = prime * result + ((getCate_id() == null) ? 0 : getCate_id().hashCode());
        result = prime * result + ((getGoods_name() == null) ? 0 : getGoods_name().hashCode());
        result = prime * result + ((getGoods_price() == null) ? 0 : getGoods_price().hashCode());
        result = prime * result + ((getGoods_discount() == null) ? 0 : getGoods_discount().hashCode());
        result = prime * result + ((getGoods_stock() == null) ? 0 : getGoods_stock().hashCode());
        result = prime * result + ((getGoods_origin() == null) ? 0 : getGoods_origin().hashCode());
        result = prime * result + ((getGoods_material() == null) ? 0 : getGoods_material().hashCode());
        result = prime * result + ((getGoods_postalfee() == null) ? 0 : getGoods_postalfee().hashCode());
        result = prime * result + ((getGoods_date() == null) ? 0 : getGoods_date().hashCode());
        result = prime * result + ((getGoods_sales() == null) ? 0 : getGoods_sales().hashCode());
        result = prime * result + ((getGoods_pic() == null) ? 0 : getGoods_pic().hashCode());
        result = prime * result + ((getGoods_disc() == null) ? 0 : getGoods_disc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", goods_id=").append(goods_id);
        sb.append(", cate_id=").append(cate_id);
        sb.append(", goods_name=").append(goods_name);
        sb.append(", goods_price=").append(goods_price);
        sb.append(", goods_discount=").append(goods_discount);
        sb.append(", goods_stock=").append(goods_stock);
        sb.append(", goods_origin=").append(goods_origin);
        sb.append(", goods_material=").append(goods_material);
        sb.append(", goods_postalfee=").append(goods_postalfee);
        sb.append(", goods_date=").append(goods_date);
        sb.append(", goods_sales=").append(goods_sales);
        sb.append(", goods_pic=").append(goods_pic);
        sb.append(", goods_disc=").append(goods_disc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}